#!/usr/bin/python

f = open("smallfile.txt","r+")
all_lines = f.readlines()
f.seek(0)
for i in all_lines:
    new = i.replace('python',"PYTHON")
    f.write(new)
f.close()
